package com.ruoyi.vplat.websocket.listener.gb;

import javax.websocket.Session;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;

import com.ruoyi.common.websocket.listener.WsOpenListener;
import com.ruoyi.vplat.websocket.listener.AbstractWsOpenListener;

@Component
public class GBWsOpenListener extends AbstractWsOpenListener {
	@Override
	public void onOpen(String username, Session session) throws Exception {
		String gateway = username.toString();
		String protocol = "2";
		String gatewayId = saveOrUpdateGateway(username, session, "国标服务", protocol);

	}

}
